/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.report.service;

import java.util.List;

import com.jeeplus.modules.sys.entity.User;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.report.entity.WeekReport;
import com.jeeplus.modules.report.mapper.WeekReportMapper;

/**
 * 周报Service
 * @author 卢经纬
 * @version 2018-06-27
 */
@Service
@Transactional(readOnly = true)
public class WeekReportService extends CrudService<WeekReportMapper, WeekReport> {

	public WeekReport get(String id) {
		return super.get(id);
	}

	public WeekReport getUserTemp(User user) {
		return mapper.getUserTemp(user);
	}

	public List<WeekReport> findList(WeekReport weekReport) {
		return super.findList(weekReport);
	}

	public Page<WeekReport> findPage(Page<WeekReport> page, WeekReport weekReport) {
		return super.findPage(page, weekReport);
	}

	@Transactional(readOnly = false)
	public void save(WeekReport weekReport) {
		super.save(weekReport);
	}
	
	@Transactional(readOnly = false)
	public void delete(WeekReport weekReport) {
		super.delete(weekReport);
	}
	
}